package com.kp.exampleconsumer;

import com.kp.rpc.common.model.User;
import com.kp.rpc.common.service.UserService;
import kp.rpc.spring.boot.stater.annotation.KpRpcReference;
import org.springframework.stereotype.Service;

@Service
public class ExampleServiceImpl {
    @KpRpcReference//开启远程调用
    private UserService userService;

    public void test() {
        User user = new User();
        user.setName("唐志峰你好呀");
        User user1 = this.userService.getUser(user);
        System.out.println(user1);
    }
}
